.snake-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    font-family: "Arial", sans-serif;
    border-radius: 10px;

    @media (max-width: 768px) {
        flex-direction: column;
        align-items: center;
    }

    #snake-game {
        border: 3px solid #4caf50;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
        overflow: hidden;
        line-height: 0;
        font-size: 0;

        canvas {
            display: block;
            margin: 0;
            padding: 0;
        }
    }

    .game-info {
        min-width: 260px;
        background-color: #4caf50;
        background-image: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
        border-radius: 8px;
        padding: 24px;
        color: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

        .score-panel {
            margin-bottom: 24px;
            background-color: rgba(255, 255, 255, 0.1);
            padding: 15px;
            border-radius: 6px;

            h3 {
                margin: 8px 0;
                font-size: 1.2rem;
                font-weight: 600;
                text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
            }
        }

        .controls {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 24px;

            button {
                background-color: #ffffff;
                border: none;
                color: #2e7d32;
                padding: 12px 18px;
                text-align: center;
                text-decoration: none;
                display: inline-block;
                font-size: 1rem;
                font-weight: 600;
                margin: 0;
                cursor: pointer;
                border-radius: 6px;
                transition: all 0.3s;
                box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);

                &:hover:not(:disabled) {
                    background-color: #f5f5f5;
                    transform: translateY(-2px);
                    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
                }

                &:active:not(:disabled) {
                    transform: translateY(0);
                    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
                }

                &:disabled {
                    background-color: rgba(255, 255, 255, 0.5);
                    color: rgba(0, 0, 0, 0.3);
                    cursor: not-allowed;
                    box-shadow: none;
                }
            }
        }

        .instructions {
            background-color: rgba(255, 255, 255, 0.1);
            padding: 15px;
            border-radius: 6px;

            h3 {
                margin-bottom: 12px;
                font-size: 1.2rem;
                font-weight: 600;
                text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
            }

            p {
                margin: 8px 0;
                font-size: 1rem;
                line-height: 1.5;
            }
        }
    }
}

canvas {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}
